package com.study.excel;

import com.alibaba.excel.EasyExcel;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @author zmj
 * @date 2020/11/12
 */
public class EasyExcelTest4 {


    public static void main(String[] args) throws IOException {
        String fileName = "d:\\1.xlsx";
        Map<String, String> notNullMap = new HashMap<>();
        Map<String, String> notValueMap = new HashMap<>();
        // 这里 只要，然后读取第一个sheet 同步读取会自动finish
        EasyExcel.read(fileName, MonthData.class,new FilterNotNullAmountListener(2,notNullMap,notValueMap)).sheet().doRead();

    }

}
